Part Number Hot Search : 
6M000 P6KE68C 1322BB 3386W202 13U01 CL100 P6KE68 M57716L
Product Description
Full Text Search
 

To Download MCF5202 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MCF5202 ColdFire
TM
Integrated Microprocessor User's Manual
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters can and do vary in different applications. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
(c) MOTOROLA, 1996 All Rights Reserved.
68K FAX-IT
Documentation Comments
FAX 512-891-8593--Documentation Comments Only
The Motorola High-Performance Embedded Systems Technical Communications Department provides a fax number for you to submit any questions or comments about this document or how to order other documents. We welcome your suggestions for improving our documentation. Please do not fax technical questions. Please provide the part number and revision number (located in upper right-hand corner of the cover) and the title of the document. When referring to items in the manual, please reference by the page number, paragraph number, figure number, table number, and line number if needed. When sending a fax, please provide your name, company, fax number, and phone number including area code. For Internet Access: Telnet: pirs.aus.sps.mot.com (Login: pirs) WWW: http: / / pirs.aus.sps.mot.com/aesop/hmpg.html Query By Email: aesop_query@pirs.aus.sps.mot.com (Type ``HELP'' in text body.) For Dial-Up: Phone: +1-512-891-3650 Phone (US or Canada): 1-800-843-3451 Connection Settings: N/8/1/F Data Rate: < 14,400 bps Terminal Emulation: VT100 Login: pirs For AESOP Questions: FAX: +1-512-891-8775 EMAIL: aesop_sysop@pirs.aus.sps.mot.com For Hotline Questions: FAX (US or Canada): 1-800-248-8567 EMAIL: aesop_support@pirs.aus.sps.mot.com
MOTOROLA
MCF5202 USER'S MANUAL
iii
Applications and Technical Information
For questions or comments pertaining to technical information, questions, and applications, please contact one of the following sales offices nearest you.
-- Sales Offices --
Field Applications Engineering Available Through All Sales Offices UNITED STATES
GERMANY, Langenhagen/ Hanover 49(511)789911 GERMANY, Munich 49 89 92103-0 GERMANY, Nuremberg 49 911 64-3044 GERMANY, Sindelfingen 49 7031 69 910 GERMANY, Wiesbaden 49 611 761921 HONG KONG, Kwai Fong 852-4808333 Tai Po 852-6668333 INDIA, Bangalore (91-812)627094 ISRAEL, Tel Aviv 972(3)753-8222 ITALY, Milan 39(2)82201 JAPAN, Aizu 81(241)272231 JAPAN, Atsugi 81(0462)23-0761 JAPAN, Kumagaya 81(0485)26-2600 JAPAN, Kyushu 81(092)771-4212 JAPAN, Mito 81(0292)26-2340 JAPAN, Nagoya 81(052)232-1621 JAPAN, Osaka 81(06)305-1801 JAPAN, Sendai 81(22)268-4333 JAPAN, Tachikawa 81(0425)23-6700 JAPAN, Tokyo 81(03)3440-3311 JAPAN, Yokohama 81(045)472-2751 KOREA, Pusan 82(51)4635-035 KOREA, Seoul 82(2)554-5188 MALAYSIA, Penang 60(4)374514 MEXICO, Mexico City 52(5)282-2864 MEXICO, Guadalajara 52(36)21-8977 Marketing 52(36)21-9023 Customer Service 52(36)669-9160 NETHERLANDS, Best (31)49988 612 11 PUERTO RICO, San Juan (809)793-2170 SINGAPORE (65)2945438 SPAIN, Madrid 34(1)457-8204 or 34(1)457-8254 SWEDEN, Solna 46(8)734-8800 SWITZERLAND, Geneva 41(22)7991111 SWITZERLAND, Zurich 41(1)730 4074 TAlWAN, Taipei 886(2)717-7089 THAILAND, Bangkok (66-2)254-4910 UNITED KINGDOM, Aylesbury 44(296)395-252 FULL LINE REPRESENTATIVES COLORADO, Grand Junction Cheryl Lee Whltely (303) 243-9658 KANSAS, Wichita Melinda Shores/Kelly Greiving (316) 838 0190 NEVADA, Reno Galena Technology Group (702) 746 0642 NEW MEXICO, Albuquerque S&S Technologies, lnc. (505) 298-7177 UTAH, Salt Lake City Utah Component Sales, Inc. (801) 561-5099 WASHINGTON, Spokane Doug Kenley (509) 924-2322 ARGENTINA, Buenos Aires Argonics, S.A. (541) 343-1787 HYBRID COMPONENTS RESELLERS Elmo Semiconductor (818) 768-7400 Minco Technology Labs Inc. (512) 834-2022 Semi Dice Inc. (310) 594-4631
ALABAMA, Huntsville ARIZONA, Tempe CALIFORNIA, Agoura Hills CALIFORNIA, Los Angeles CALIFORNIA, Irvine CALIFORNIA, Rosevllle CALIFORNIA, San Diego CALIFORNIA, Sunnyvale COLORADO, Colorado Springs COLORADO, Denver CONNECTICUT, Wallingford FLORIDA, Maitland FLORIDA, Pompano Beach/ Fort Lauderdale FLORIDA, Clearwater GEORGlA, Atlanta IDAHO, Boise ILLINOIS, Chicago/Hoffman Estates INDlANA, Fort Wayne INDIANA, Indianapolis INDIANA, Kokomo IOWA, Cedar Rapids KANSAS, Kansas City/Mission MARYLAND, Columbia MASSACHUSETTS, Marborough MASSACHUSETTS, Woburn MICHIGAN, Detroit MINNESOTA, Minnetonka MISSOURI, St. Louis NEW JERSEY, Fairfield NEW YORK, Fairport NEW YORK, Hauppauge NEW YORK, Poughkeepsie/Fishkill NORTH CAROLINA, Raleigh OHIO, Cleveland OHIO, Columbus/Worthington OHIO, Dayton OKLAHOMA, Tulsa OREGON, Portland PENNSYLVANIA, Colmar Philadelphia/Horsham TENNESSEE, Knoxville TEXAS, Austin TEXAS, Houston TEXAS, Plano VIRGINIA, Richmond WASHINGTON, Bellevue Seattle Access WISCONSIN, Milwaukee/Brookfield CANADA BRITISH COLUMBIA, Vancouver ONTARIO, Toronto ONTARIO, Ottawa QUEBEC, Montreal INTERNATIONAL AUSTRALIA, Melbourne AUSTRALIA, Sydney BRAZIL, Sao Paulo CHINA, Beijing FINLAND, Helsinki Car Phone FRANCE, Paris/Vanves
(205) 464-6800 (602) 897-5056 (818) 706-1929 (310) 417-8848 (714) 753-7360 (916) 922-7152 (619) 541-2163 (408) 749-0510 (719) 599-7497 (303) 337-3434 (203) 949-4100 (407) 628-2636 (305) 486-9776 (813) 538-7750 (404) 729-7100 (208) 323-9413 (708) 490-9500 (219) 436-5818 (317) 571-0400 (317) 457-6634 (319) 373-1328 (913) 451-8555 (410) 381-1570 (508) 481-8100 (617) 932-9700 (313) 347-6800 (612) 932-1500 (314) 275-7380 (201) 808-2400 (716) 425-4000 (516) 361-7000 (914) 473-8102 (919) 870-4355 (216) 349-3100 (614) 431-8492 (513) 495-6800 (800) 544-9496 (503) 641-3681 (215) 997-1020 (215) 957-4100 (615) 584-4841 (512) 873-2000 (800) 343-2692 (214) 516-5100 (804) 285-2100 (206) 454-4160 (206) 622-9960 (414) 792-0122 (604) 293-7605 (416) 497-8181 (613) 226-3491 (514) 731-6881 (61-3)887-0711 (61(2)906-3855 55(11)815-4200 86 505-2180 358-0-35161191 358(49)211501 33(1)40 955 900
iv
MCF5202 USER'S MANUAL
MOTOROLA
PREFACE
The MCF5202 ColdFire Integrated Microprocessor User's Manual describes the programming, capabilities, and operation of the MCF5202 device. Refer to the MCF5200 ColdFire Family Programmer's Reference Manual for information on the ColdFire Family of microprocessors. TRADEMARKS All trademarks reside with their respective owners.
MOTOROLA
MCF5202 USER'S MANUAL
v
ACRONYMS AND ABBREVIATIONS
The following acronyms and abbreviations are used throughout this manual: ACR1, ACR2: Access Control Register 1; Access Control Register 2 BDM: Background Debug Mode CACR: Cache Control Register DS0: development serial ouput DS1: development serial input DSCLK: development serial clock DRc: Debug Control Register FIFO: first-in-first-out IFP: instruction fetch pipeline JTAG: Joint Test Action Group LSB: least significant bit MSB: most significant bit OEP: operand execution pipeline PC: program counter SBC: system bus controller SIM: system integration module SR: status register TAP: test access port VBR: vector base register
MOTOROLA
MCF5202 USER'S MANUAL
xvii
TABLE OF CONTENTS
Section 1 Introduction 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Features.................................................................................................................... 1-2 Functional Blocks..................................................................................................... 1-3 Processor States ..................................................................................................... 1-4 Programming Model ................................................................................................ 1-4 Data Format Summary ............................................................................................ 1-7 Addressing Capabilities Summary........................................................................... 1-7 Notational Conventions............................................................................................ 1-9 Instruction Set Overview........................................................................................ 1-12 Section 2 Signal Description 2.1 Introduction ............................................................................................................... 2-1 2.2 Address And Control Signals ................................................................................... 2-3 2.2.1 Address/data Lines - (A/D[31:0]) ............................................................... 2-3 2.2.2 Read/write - (R/W) ..................................................................................... 2-3 2.2.3 Transfer Start - (TS) ................................................................................... 2-3 2.2.4 Address Acknowledge - (AA) ..................................................................... 2-3 2.2.5 Size - (SIZ[1:0]) .......................................................................................... 2-3 2.2.6 Transfer Type - (TT[1:0]) ........................................................................... 2-4 2.2.7 Access Type And Mode - (ATM) ................................................................ 2-4 2.2.8 Data Transfer In Progress - (DTIP) ............................................................ 2-4 2.2.9 Data Acknowledge - (DA[1:0]) ................................................................... 2-4 2.2.10 Transfer Error Acknowledge - (TEA) ......................................................... 2-6 2.2.11 Transfer Burst Inhibit - (TBI) ...................................................................... 2-6 2.3 Bus Arbitration ......................................................................................................... 2-6 2.3.1 Bus Request - (BR) .................................................................................... 2-6 2.3.2 Bus Grant - (BG) ........................................................................................ 2-6 2.3.3 Bus Driven - (BD) ....................................................................................... 2-6 2.4 Interrupt Control ....................................................................................................... 2-6 2.4.1 Interrupt Priority Level - (IPL[2:0]) .............................................................. 2-6 2.4.2 Autovector - (AVEC) .................................................................................. 2-6 2.5 Clock, Reset And Status .......................................................................................... 2-7 2.5.1 Clock Input - (CLK) .................................................................................... 2-7 2.5.2 Reset (RST) ............................................................................................... 2-7 2.5.3 Processor Status - (PST[3:0]) .................................................................... 2-7 2.6 Test ...................................................................................................................... 2-7 2.6.1 Motorola Test Mode - (MTMOD[2:0]) ......................................................... 2-8
MOTOROLA MCF5202 USER'S MANUAL vii
Table of Contents
2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9
Test Clock - (TCK) ..................................................................................... 2-8 Debug Data - DDATA[3:0] ......................................................................... 2-8 Test Reset/Development Serial Clock - (TRST/DSCLK) ........................... 2-8 Test Mode Select/ Break Point (TMS/BKPT) ............................................. 2-9 Test Data Input/Development Serial Input - (TDI/DSI) .............................. 2-9 Test Data Output/Development Serial Output - (TDO/DSO) ..................... 2-9 High Impedance - (HIZ) ........................................................................... 2-10 JTAG Compliance Enable - (JCE) ........................................................... 2-10 Section 3 ColdFire Core
3.1 Processor Pipelines ................................................................................................. 3-1 3.2 Processor Register Description ............................................................................... 3-2 3.2.1 User Programming Model .......................................................................... 3-2 3.2.1.1 Data Registers (D0-D7) .......................................................................... 3-2 3.2.1.2 Address Registers (A0-A6) ..................................................................... 3-2 3.2.1.3 Stack Pointer (A7) ................................................................................... 3-2 3.2.1.4 Program Counter ..................................................................................... 3-2 3.2.1.5 Condition Code Register ......................................................................... 3-3 3.2.2 Supervisor Programming Model ................................................................ 3-4 3.2.2.1 Status Register ........................................................................................ 3-4 3.2.2.2 Vector Base Register (VBR) .................................................................... 3-5 3.3 Exception Processing Overview .............................................................................. 3-5 3.4 Exception Stack Frame Definition ........................................................................... 3-7 3.5 Processor Exceptions .............................................................................................. 3-8 3.5.1 Access Error Exception ............................................................................. 3-8 3.5.2 Address-Error Exception ........................................................................... 3-9 3.5.3 Illegal Instruction Exception ....................................................................... 3-9 3.5.4 Privilege Violation ...................................................................................... 3-9 3.5.5 Trace Exception ......................................................................................... 3-9 3.5.6 Debug Interrupt ........................................................................................ 3-10 3.5.7 RTE and Format Error Exceptions .......................................................... 3-10 3.5.8 TRAP Instruction Exceptions ................................................................... 3-10 3.5.9 Interrupt Exception .................................................................................. 3-10 3.5.10 Fault-on-Fault Halt ................................................................................... 3-11 3.5.11 Reset Exception ...................................................................................... 3-11 3.6 Instruction Execution Timing ................................................................................. 3-11 3.6.1 Timing Assumptions ................................................................................ 3-12 3.6.2 MOVE Instruction Execution Times ......................................................... 3-12 3.7 Standard One Operand Instruction Execution Times ............................................. 3-14 3.8 Standard Two Operand Instruction Execution Times ............................................. 3-15 3.9 Miscellaneous Instruction Execution Times............................................................ 3-16 3.10 Branch Instruction Execution Times ....................................................................... 3-17
viii
MCF5202 USER'S MANUAL
MOTOROLA
Table of Contents
Section 4 Cache 4.1 Cache Organization .................................................................................................4-2 4.2 Cache Operation ......................................................................................................4-2 4.3 Cache Control Register ............................................................................................4-5 4.4 Access Control Registers .........................................................................................4-7 4.5 Cache Management .................................................................................................4-8 4.6 Caching Modes ........................................................................................................4-9 4.6.1 Cacheable Accesses ................................................................................4-10 4.6.1.1 Writethrough Mode ................................................................................4-10 4.6.1.2 Copyback Mode .....................................................................................4-10 4.6.2 Cache-Inhibited Accesses ........................................................................4-11 4.7 Cache Protocol .......................................................................................................4-11 4.7.1 Read Miss ................................................................................................4-12 4.7.2 Write Miss ................................................................................................4-12 4.7.3 Read Hit ...................................................................................................4-12 4.7.4 Write Hit ...................................................................................................4-12 4.8 Cache Coherency ..................................................................................................4-12 4.9 Memory Accesses for Cache Maintenance ............................................................4-12 4.9.1 Cache Filling ............................................................................................4-13 4.9.2 Cache Pushes ..........................................................................................4-13 4.10 Push and Store Buffers ..........................................................................................4-14 4.11 Push And Store Buffer Bus Operation ...................................................................4-14 4.12 Cache Operation Summary ....................................................................................4-15 Section 5 Bus Operations 5.1 5.2 5.3 5.4 5.5 Bus Characteristics ..................................................................................................5-1 Data Transfers .........................................................................................................5-2 Acknowledge Bus Cycles .........................................................................................5-5 Bus Arbitration ..........................................................................................................5-5 Reset Operation .......................................................................................................5-6 Section 6 Debug Support 6.1 Real-Time Trace ......................................................................................................6-1 6.2 Background Debug Mode ........................................................................................6-4 6.2.1 CPU Halt ....................................................................................................6-5 6.2.2 BDM Serial Interface ..................................................................................6-6 6.2.3 BDM Command Set ...................................................................................6-7 6.2.3.1 BDM Command Set Summary ...................................................................6-7 6.2.3.2 ColdFire BDM Commands .........................................................................6-8 6.2.3.3 Command Sequence Diagram ...................................................................6-9 6.2.3.4 Command Set Descriptions .....................................................................6-10
MOTOROLA
MCF5202 USER'S MANUAL
ix
Table of Contents
6.2.3.4.1 Read A/D Register .............................................................................. 6-10 6.2.3.4.2 Write A/D Register ............................................................................... 6-11 6.2.3.4.3 Read Memory Location (READ) .......................................................... 6-12 6.2.3.4.4 Write Memory Location (WRITE) ........................................................ 6-14 6.2.3.4.5 Dump Memory Block (DUMP) .............................................................. 6-16 6.2.3.4.6 Fill Memory Block (FILL) ...................................................................... 6-18 6.2.3.4.7 Resume Execution (GO) ..................................................................... 6-20 6.2.3.4.8 No Operation (NO) .............................................................................. 6-20 6.2.3.4.9 Read Control Register (RCREG) ........................................................ 6-21 6.2.3.4.10 Write Control Register (WCREG)......................................................... 6-22 6.2.3.4.11 Read Debug Module Register (RDMREG) .......................................... 6-23 6.2.3.4.12 Write Debug Module Register (WDMREG) .......................................... 6-23 6.2.3.4.13 Unassigned Opcodes ........................................................................... 6-24 6.3 Real-Time Debug Support...................................................................................... 6-25 6.3.1 Programming Model ................................................................................. 6-25 6.3.1.1 Address Breakpoint Registers (ABLR, ABHR) ....................................... 6-26 6.3.1.2 Address Attribute Breakpoint Register (AABR) ...................................... 6-26 6.3.1.3 Program Counter Breakpoint Register (PBR, PBMR) ............................ 6-28 6.3.1.4 Data Breakpoint Register (DBR, DBMR)................................................ 6-28 6.3.1.5 Trigger Definition Register (TDR) ........................................................... 6-29 6.3.1.6 Configuration/Status Register (CSR) ..................................................... 6-30 6.3.2 Theory of Operation.................................................................................. 6-33 6.3.2.1 Reuse of Debug Module Hardware ........................................................ 6-34 6.3.3 Concurrent BDM and Processor Operation.............................................. 6-35 6.4 Motorola Recommended BDM Pinout .................................................................... 6-35 6.4.1 Differences Between ColdFire BDM and a CPU32 BDM ......................... 6-36 Section 7 JTAG Specification 7.1 IEEE 1149.1 Test Access Port (JTAG) Specification ............................................... 7-1 7.2 Overview................................................................................................................... 7-2 7.2.1 JTAG Pin Descriptions ............................................................................... 7-3 7.3 JTAG Register Description ....................................................................................... 7-4 7.3.1 JTAG Instruction Shift Register .................................................................. 7-4 7.3.1.1 Extest Instruction ...................................................................................... 7-5 7.3.1.2 Sample/Preload Instruction ...................................................................... 7-5 7.3.1.3 HighZ Instruction ...................................................................................... 7-5 7.3.1.4 Clamp Instruction ..................................................................................... 7-6 7.3.1.5 Bypass Instruction .................................................................................... 7-6 7.3.2 JTAG Boundary Scan Register .................................................................. 7-6 7.3.3 JTAG Bypass Register ............................................................................... 7-7
x
MCF5202 USER'S MANUAL
MOTOROLA
Table of Contents
8.1 8.2 8.3 8.4 8.5 8.6
Section 8 Porting from M68K Architecture C Compilers and Host Software................................................................................8-1 Target Software Port .................................................................................................8-1 Initialization Code .....................................................................................................8-2 Exception Handlers ..................................................................................................8-2 Supervisor Registers.................................................................................................8-3 Summary...................................................................................................................8-4 Section 9 Electrical Characteristics Maximum Ratings .....................................................................................................9-1 Clock Input Specification...........................................................................................9-2 DC Electrical Specifications ......................................................................................9-3 Output AC Timing Specifications ..............................................................................9-4 Input AC Timing Specifications .................................................................................9-4 JTAG AC Timing Specifications ................................................................................9-8 Section 10 Mechanical Data
9.1 9.2 9.3 9.4 9.5 9.6
MOTOROLA
MCF5202 USER'S MANUAL
xi
Table of Contents
xii
MCF5202 USER'S MANUAL
MOTOROLA
LIST OF FIGURES
Section 1 Introduction 1-1 Block Diagram .......................................................................................................... 1-3 1-2 Programming Model ................................................................................................ 1-6 Section 2 Signal Description 2-1 MCF5202 Block Diagram.......................................................................................... 2-1 2-2 Data Bit Assignments to External Port Sizes ........................................................... 2-5 Section 3 ColdFire Core 3-1 3-2 3-3 3-4 3-5 ColdFire Processor Core Pipeline ........................................................................... 3-1 User Programming Model ........................................................................................ 3-3 Supervisor Programming Model .............................................................................. 3-4 Status Register ........................................................................................................ 3-5 Exception Stack Frame Form ................................................................................... 3-7 Section 4 Cache 4-1 4-2 4-3 4-4 4-5 4-6 MCF5202 Unified Cache ......................................................................................... 4-1 Cache Organization and Line Format ...................................................................... 4-2 Caching Operation ................................................................................................... 4-3 Cache Control Register ........................................................................................... 4-5 Access Control Register Format .............................................................................. 4-7 Cache Line State Diagrams ................................................................................... 4-16 Section 5 Bus Operations 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 Signal Relationships to CLK .................................................................................... 5-1 Simple Transfer Followed by Transfer Containing Bus Error .................................. 5-2 Dynamically Sized Burst-Inhibited Read Access ..................................................... 5-3 Dynamically Sized Burst-Inhibited Write Access ..................................................... 5-3 Dynamically Sized Burst Read ................................................................................ 5-4 Dynamically Sized Burst Write.................................................................................. 5-4 Interrupt-Acknowledge Operation ............................................................................. 5-5 Bus Arbitration Operation ......................................................................................... 5-6 Reset Operation........................................................................................................ 5-7
MOTOROLA
MCF5202 USER'S MANUAL
xiii
List of Figures
Section 6 Debug Support 6-1 6-2 6-3 6-4 6-5 6-6 Processor/Debug Module Interface ......................................................................... 6-1 Pipeline Timing Example - Debug Output ............................................................... 6-3 BDM Signal Sampling............................................................................................... 6-6 Command Sequence Diagram .............................................................................. 6-10 Debug Programming Model.................................................................................... 6-25 CSR Bit Definitions ................................................................................................ 6-31 Section 7 JTAG Specification 7-1 7-2 7-3 7-4 JTAG Mode, JTAG Disabled .................................................................................... 7-2 Background Debug Mode, JTAG Disabled............................................................... 7-2 JTAG Test Logic Block Diagram .............................................................................. 7-4 JTAG TAP Controller State Machine........................................................................ 7-7 Section 8 Porting from M68K Architecture
9-1 9-2 9-3 9-4 9-5 9-6 9-7
Section 9 Electrical Characteristics Clock Input Timing.................................................................................................... 9-2 Bus Arbitration Timing .............................................................................................. 9-5 Read/Write Timing.................................................................................................... 9-6 Other Signals, Input Timing ...................................................................................... 9-7 Other Signals, Output Timing ................................................................................... 9-7 HIZ Output Timing .................................................................................................... 9-7 JTAG Timing............................................................................................................. 9-9
Section 10 Mechanical Data 10-1 MCF5202 Mechanical Specs.................................................................................. 10-1 10-2 MCF5202 Pinout..................................................................................................... 10-2
xiv
MCF5202 USER'S MANUAL
MOTOROLA
LIST OF TABLES
Section 1 Introduction 1-1 1-2 1-3 1-4 1-5 1-6 1-7 ColdFire MCF5202 Data Formats............................................................................. 1-7 ColdFire Effective Addressing Modes...................................................................... 1-8 Specific Effective Addressing Modes........................................................................ 1-8 MOVE Specific Effective Addressing Modes ............................................................ 1-8 Notational Conventions............................................................................................. 1-9 Supervisor-Mode Instruction Summary .................................................................. 1-12 User Mode Instruction Summary ............................................................................ 1-12 Section 2 Signal Description 2-1 2-2 2-3 2-4 2-5 2-6 2-7 MCF5202 Signal Index ............................................................................................. 2-2 Bus Cycle Size Encodings ....................................................................................... 2-3 Bus Cycle Transfer Type Encoding .......................................................................... 2-4 Access/Mode Encodings .......................................................................................... 2-4 External Data Acknowledge Encodings.................................................................... 2-5 MCF5202 Processor PST Definition......................................................................... 2-7 MTMOD Definition .................................................................................................... 2-8 Section 3 ColdFire Core 3-1 Exception Vector Assignments ................................................................................ 3-7 3-2 Format Field Encodings ........................................................................................... 3-8 3-3 Fault Status Encodings ............................................................................................ 3-8 3-4 Misaligned Operand References ............................................................................ 3-12 3-5 Move Byte and Word Execution Times................................................................... 3-13 3-6 Move Long Execution Times .................................................................................. 3-13 3-7 One Operand Instruction Execution Times............................................................. 3-14 3-8 Two Operand Instruction Execution Times............................................................. 3-15 3-9 Miscellaneous Instruction Execution Times............................................................ 3-16 3-10 General Branch Instruction Execution Times ......................................................... 3-17 3-11 BRA, Bcc Instruction Execution Times ................................................................... 3-17 Section 4 Cache 4-1 Cache Line State Transitions ................................................................................. 4-16
MOTOROLA
MCF5202 USER'S MANUAL
xv
List of Tables
Section 5 Bus Operations Section 6 Debug Support 6-1 Processor PST Definition ........................................................................................ 6-2 6-2 CPU-Generated Message Encoding ....................................................................... 6-7 6-3 BDM Command Summary........................................................................................ 6-7 6-4 BDM Size Field Encoding......................................................................................... 6-8 6-5 Control Register Map.............................................................................................. 6-21 6-6 Definition of DRc Encoding-Read .......................................................................... 6-23 6-7 Definition of DRc Encoding-Write ........................................................................... 6-24 6-8 SZ Encodings ......................................................................................................... 6-27 6-9 Transfer Type Encodings ....................................................................................... 6-27 6-10 Transfer Modifier Encodings for Normal Transfers................................................. 6-28 6-11 Transfer Modifier Encodings for Alternate Transfers.............................................. 6-28 6-12 Core Address, Access Size, and Operand Location .............................................. 6-28 6-13 DDATA, CSR[31:28] Breakpoint Response ........................................................... 6-33 6-14 Shared BDM/Breakpoint Hardware ........................................................................ 6-34 Section 7 JTAG Specification 7-1 JTAG Instructions ..................................................................................................... 7-5
Section 8 Porting from M68K Architecture
9-1 9-2 9-3 9-4 9-5 9-6 9-7 9-8 9-9
Section 9 Electrical Characteristics Maximum Ratings..................................................................................................... 9-1 Operating Environment............................................................................................. 9-1 Thermal Characteristics............................................................................................ 9-2 Clock Input Specifications ........................................................................................ 9-2 DC Electrical Specifications...................................................................................... 9-3 Output AC Timing Specifications.............................................................................. 9-4 Input AC Timing Specifications................................................................................. 9-4 JTAG AC Input Timing Specification ........................................................................ 9-8 JTAG AC Output Timing Specification ..................................................................... 9-8 Section 10 Mechanical Data
xvi
MCF5202 USER'S MANUAL
MOTOROLA
Date: 7-28-98 Revision Number: 0.1 Pages affected: See change bars
SECTION 1 INTRODUCTION
ColdFireTM represents a revolutionary new microprocessor architecture that has been optimized for embedded processing applications. It brings new levels of price and performance to cost-sensitive high-volume markets. Based on the concept of variablelength RISC technology, ColdFire combines the architectural simplicity of conventional 32bit RISC with a memory-saving, variable-length instruction set. Employing a variable-length instruction set architecture, ColdFire RISC processors are tuned to offer embedded processor designers significant system-level advantages over conventional fixed-length RISC architectures. Softword code for ColdFire processors is denser and therefore takes up less memory than for any fixed-length instruction set RISC processor. This improved code density results in systems that require less memory for a given application and also allows the use of slower and less costly memory to achieve a given performance level. Denser code improves cache hit ratios and improves performance for a given size cache. The MCF5202 processor is a ColdFire Family member that has been optimized for costeffective performance in deeply embedded applications. The MCF5202 processor can operate on a 32-, 16-, or 8-bit external data bus.
MOTOROLA
MCF5202 USER'S MANUAL
1-1
Introduction
1.1 FEATURES
The primary features of the MCF5202 processor include the following: * Best-in-Class Code Density -- Requires less memory than fixed length RISC equivalents -- Allows use of slower memory for a given performance level than fixed-length RISCs -- Improves cache effectiveness * Dynamic Bus Sizing -- 32-, 16-, and 8-bit bus support on the MCF5202 processor * 2 kbyte On-Chip Unified Cache -- High performance 4-way set associative, non-blocking cache implementation * Simple Instruction Set Architecture -- Optimized for high-level language constructs -- Requires minimal silicon area to implement processor core -- 16 user-visible 32-bit wide general-purpose registers -- Supervisor / user modes for system protection -- Vector base register to relocate exception-vector table * Debug Module Including Background Debug and Real Time Debug Support * Low Interrupt Latency * Full Static Design Allows Operation Down to DC for Minimizing Power Consumption * Three-State Pin * JTAG IEEE 1149.1 Test Interface * Single Clock Input
1-2
MCF5202 USER'S MANUAL
MOTOROLA
Introduction
1.2 FUNCTIONAL BLOCKS
Figure 1-1 is a simplified block diagram of the MCF5202 processor. The MCF5202 device consists of a pipelined instruction execution unit, a two-kbyte unified cache, a debug module, and an external bus controller that supports the IEEE 1149.1 JTAG interface. The instruction execution unit is comprised of two separate pipelines that are decoupled by an instruction buffer. The instruction fetch pipeline (IFP) is responsible for instruction address generation and instruction fetch. The instruction buffer is a first-in-first-out (FIFO) buffer that holds prefetched instructions waiting for execution in the operand execution pipeline (OEP). The OEP includes two pipeline stages. The first decodes instructions and selects operands; the second calculates operand effective addresses, if needed, and performs instruction execution.
KBUS COLDFIRE PROCESSOR CORE INSTRUCTION FETCH PIPELINE CACHE CONTROL CONTROL LOGIC
MBUS CONTROL SYSTEM BUS CONTROLLER
EXTERNAL BUS
INSTRUCTION BUFFER
D E B U G
DATA ARRAY DIRECTORY ARRAY
CONTROL J T A ADDR/DATA G
OPERAND EXECUTION PIPELINE
DATA PATH DATA ADDRESS PATH ADDRESS
DATA ADDRESS
Figure 1-1. Block Diagram The MCF5202 processor uses a unified data/instruction cache to improve overall system performance. The primary improvement is because of the availability of the most recently used instructions and data in a memory that can be accessed by the processor core in a single cycle. A second improvement is the increased external bus bandwidth available for alternate bus masters in the system. The nonblocking cache is organized as 4-way set associative and is physically mapped, thereby reducing software support for multitasking operating systems. The bus controller performs bus transfers on the external bus. The MCF5202 bus controller supports a high-speed, multiplexed, synchronous, external bus interface. This interface in turn supports burst accesses for both reads and writes to provide high data transfer rates to and from the internal cache. The bus controller also supports the industry-standard IEEE 1149.1 JTAG interface.
MOTOROLA
MCF5202 USER'S MANUAL
1-3
Introduction
1.3 PROCESSOR STATES
The processor is always in one of four states: normal processing, exception processing, stopped, or halted. It is in the normal processing state when executing instructions, fetching instructions and operands, and storing instruction results. Exception processing is the transition from program processing to system, interrupt, and exception handling. Exception processing includes fetching the exception vector, stacking operations, and refilling the instruction fetch pipe after an exception. The processor enters exception processing when an exceptional internal condition arises such as tracing an instruction, an instruction resulting in a trap, or executing specific instructions. External conditions, such as interrupts and access errors, also cause exceptions. Exception processing ends when the first instruction of the exception handler enters the operand execution pipeline. Stopped mode is a reduced power mode of operation that causes the processor to remain quiescent until either a reset or nonmasked interrupt occurs. The STOP instruction is used to enter this operation mode. The processor halts when it receives an access error or generates an address error while in the exception processing state. For example, if during exception processing of one access error another access error occurs, the MCF5202 processor cannot complete the transition to normal processing nor can it save the internal machine state. The processor assumes that the system is not operational and halts. Only an external reset can restart a halted processor. When the processor executes a STOP instruction, it is in a special type of normal processing state, e.g., one without bus cycles. The processor stops but it does not halt. The processor can also halt in a restart mode because of Background Debug Mode events.
1.4 PROGRAMMING MODEL
The ColdFire programming model is separated into two privilege modes: supervisor and user. The S-bit in the status register (SR) indicates the current privilege mode. The processor identifies a logical address by accessing either the supervisor or user address space, which differentiates between supervisor and user modes. Programs access registers based on the indicated mode. User programs can access only registers specific to the user mode. System software executing in the supervisor mode can access all registers using the control registers to perform supervisory functions. User programs are thus restricted from accessing privileged information. The operating system performs management and service tasks for user programs by coordinating their activities. This difference allows the supervisor mode to protect system resources from uncontrolled accesses. Most instructions execute in either mode but some instructions that have important system effects are privileged and can only execute in the supervisor mode. For instance, user programs cannot execute the STOP instructions. To prevent a program executing in user mode from entering the supervisor mode, instructions that can alter the S-bit in the SR are privileged. The TRAP instructions provide controlled access to operating system services
1-4
MCF5202 USER'S MANUAL
MOTOROLA
Introduction
for user programs. The processor employs the user mode and the user programming model when it is in normal processing. During exception processing, the processor changes from user to supervisor mode. Exception processing saves the current SR value on the stack and then sets the Sbit, forcing the processor into the supervisor mode. To return to the user mode, a system routine must execute a MOVE to SR, or an RTE, which operate in the supervisor mode, modifying the S-bit of the SR. After these instructions execute, the instruction fetch pipeline flushes and is refilled from the appropriate address space. The registers depicted in the programming model (see Figure 1-2) provide operand storage and control for the ColdFire processor core. The registers are partitioned into two levels of privilege modes: user and supervisor. The user programming model consists of 16 generalpurpose 32-bit registers and two control registers. The supervisor model consists of five more registers that can be accessed only by code running in supervisor mode. Only system programmers can use the supervisor programming model to implement operating system functions and I/O control. This supervisor/user distinction allows for the coding of application software that will run without modification on any ColdFire Family processor. The supervisor programming model contains the control features that system designers would not want user code to erroneously access as this might effect normal system operation. Furthermore, the supervisor programming model may need to change slightly from ColdFire generation to generation to add features or improve performance as the architecture evolves.
MOTOROLA
MCF5202 USER'S MANUAL
1-5
Introduction
31
0 D0 D1 D2 DATA REGISTERS D3 D4 D5 D6 D7
31
0 A0 A1 A2 ADDRESS REGISTERS A3 A4 A5 A6 A7 PC CCR STACK POINTER PROGRAM COUNTER CONDITION CODE REGISTER
USER PROGRAMMING MODEL
15 31 19 (CCR) MUST BE ZEROS SR VBR CACR ACR0 ACR1 STATUS REGISTER VECTOR BASE REGISTER CACHE CONTROL REGISTER ACCESS CONTROL REGISTER 0 ACCESS CONTROL REGISTER 1
SUPERVISOR PROGRAMMING MODEL
Figure 1-2. Programming Model The user programming model includes eight data registers, seven address registers, and a stack pointer register. The address registers and stack pointer can be used as base address registers or software stack pointers, and any of the 16 registers can be used as index registers. Two control registers are available in the user mode--the program counter (PC), which contains the address of the instruction that the MCF5202 device is executing, and the lower byte of the SR, which is accessible as the Condition Code Register (CCR). The CCR contains the condition codes that reflect the results of a previous operation and can be used for conditional instruction execution in a program. The supervisor programming model includes the upper byte of the SR, which contains operation control information. The Vector Base Register (VBR) contains the upper 12 bits of the base address of the exception vector table, which is used in exception processing. The
1-6
MCF5202 USER'S MANUAL
MOTOROLA
Introduction
lower 20 bits of the VBR are forced to zero, allowing the vector table to reside on any 1 Mbyte memory boundary. The Cache Control Register (CACR) controls enabling of the on-chip cache of the MCF5202 processor. There are two access control registers (ACR1, ACR0) that allow portions of the address space to be mapped as noncacheable. See Sections 4.3 and 4.4 for more details on these registers.
1.5 DATA FORMAT SUMMARY
The processor performs all arithmetic using 2's complement, but operands may be signed or unsigned. Registers, memory, or instructions themselves can contain operands. The operand size for each instruction is either explicitly encoded in the instruction or implicitly defined by the instruction operation. Table1-1 lists a summary of the MCF5202 data formats. Table 1-1. ColdFire MCF5202 Data Formats
OPERAND DATA FORMAT Bit Byte Word Longword SIZE 1 Bit 8 Bits 16 Bits 32 Bits
1.6 ADDRESSING CAPABILITIES SUMMARY
The MCF5202 processor supports seven addressing modes. The register indirect addressing modes support postincrement, predecrement, offset, and indexing, which are particularly useful for handling data structures common to sophisticated embedded applications and high-level languages. The program counter indirect mode also has indexing and offset capabilities. This addressing mode is typically required to support position-independent software. Besides these addressing modes, the MCF5202 processor provides index scaling features. An instruction's addressing mode can specify the value of an operand or a register containing the operand. It can also specify how to derive the effective address of an operand in memory. Each addressing mode has an assembler syntax. Some instructions imply the addressing mode for an operand. These instructions include the appropriate fields for operands that use only one addressing mode. Table 1-2 lists a summary of the effective addressing modes of ColdFire processors.
MOTOROLA
MCF5202 USER'S MANUAL
1-7
Introduction
Table 1-2. ColdFire Effective Addressing Modes
ADDRESSING MODES Register Direct Data Address Register Indirect Address Address with Postincrement Address with Predecrement Address with Displacement Address Register Indirect with Index 8-Bit Displacement Program Counter Indirect with Displacement Program Counter Indirect with Index 8-Bit Displacement Absolute Data Addressing Short Long Immediate SYNTAX Dn An (An) (An)+ -(An) (d16,An) (d8,An,Xn) (d16,PC) (d8,PC,Xn) (xxx).W (xxx).L #
Table 1-3. Specific Effective Addressing Modes
ADDRESSING VARIANT ALLOWABLE MODES Dn (An) (An)+ -(An) (d16,An) (An) (d16,An)


Table 1-4. MOVE Specific Effective Addressing Modes
SOURCE Dn An (An) (An)+ DESTINATION All All All All
1-8
MCF5202 USER'S MANUAL
MOTOROLA
Introduction
Table 1-4. MOVE Specific Effective Addressing Modes (Continued)
SOURCE -(An) DESTINATION All Dn An (An) (An)+ -(An) (d16,An) Dn An (An) (An)+ -(An) Dn An (An) (An)+ -(An) Dn An (An) (An)+ -(An)
(d16,An) (d16,PC)
(d8,An,Xn) (d8,PC,Xn)
(xxx).W (xxx).L
#
1.7 NOTATIONAL CONVENTIONS
Table 1-5 lists the notation conventions used throughout this manual, unless otherwise specified.
MOTOROLA
MCF5202 USER'S MANUAL
1-9
Introduction
Table 1-5. Notational Conventions
OPCODE WILDCARDS cc An Ay,Ax Dn Dy,Dx Rn Ry,Rx Rw Rc DDATA CCR PC PST SR # y,x


▲Up To Search▲   

 
Price & Availability of MCF5202

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X